package axis
Import Path
github.com/K-Phoen/grabana/timeseries/axis (on go.dev)
Dependency Relation
imports 3 packages, and imported by 2 packages
Involved Source Files
axis.go
Package-Level Type Names (total 4)
Axis represents a visualization axis.
func New(fieldConfig *sdk.FieldConfig, options ...Option) (*Axis, error)
Option represents an option that can be used to configure an axis.
func Decimals(decimals int) Option
func Label(label string) Option
func Max(value float64) Option
func Min(value float64) Option
func Placement(placement PlacementMode) Option
func Scale(mode ScaleMode) Option
func SoftMax(value int) Option
func SoftMin(value int) Option
func Unit(unit string) Option
func New(fieldConfig *sdk.FieldConfig, options ...Option) (*Axis, error)
func github.com/K-Phoen/grabana/timeseries.Axis(options ...Option) timeseries.Option
PlacementMode represents the axis display placement mode.
func Placement(placement PlacementMode) Option
func github.com/K-Phoen/grabana/timeseries/fields.AxisPlacement(placement PlacementMode) fields.OverrideOption
const Auto
const Hidden
const Left
const Right
Package-Level Functions (total 10)
Decimals sets how many decimal points should be displayed.
Label sets a Y-axis text label.
Max defines a hard maximum value for the axis.
Min defines a hard minimum value for the axis.
New creates a new Axis configuration.
Placement defines how the axis should be placed in the panel.
Scale sets the scale to use for the Y-axis values..
SoftMax defines a soft maximum value for the axis.
SoftMin defines a soft minimum value for the axis.
Unit sets the unit of the data displayed in this series.
Package-Level Constants (total 7)
const Auto PlacementMode = "auto" const Hidden PlacementMode = "hidden" const Left PlacementMode = "left" const Right PlacementMode = "right"![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |